<!DOCTYPE>
<html>
<#include "../head.html">
<body>
	<#include "../top.html">
	<!-- div.main start  -->
	<div class="main">
		<!-- div.main_left start  -->
		<div class="main_left"><#include "left.html"></div>
		<!-- div.main_left end  -->
		<!-- div.main_right start  -->
		<div class="main_right">
			<#include "banner.html">
			<div class="main_content">  
			  <!--模块列表 开始-->
			<div class="module_add">	
			  <form action="" method="post">
			  <table  border="0"  cellspacing="1" bgcolor="#CCCCCC" width="100%">
				<tr >
					<td width="" class="main_td">ID</td>
					<td width="*" class="main_td">用户名称</td>
					<td width="" class="main_td">类型</td>
					<td width="" class="main_td">该用户现有红包</td>
					<td width="" class="main_td">操作金额</td>
					<td width="" class="main_td">添加时间</td>
					<td width="" class="main_td">备注</td>
					<td width="" class="main_td">操作</td>
				</tr>
				<#if param?exists>
					<#if param.get("username")?exists><#assign username=param.get("username")></#if>
				   	<#if param.get("account_type")?exists><#assign account_type=param.get("account_type")></#if>
				</#if>				
				<#list list as item>
				<tr>
					<td>${(item.id!0)?c}</td>
					<td>${item.username!}</td>
					<td>${item.typename!"错误类型"}</td>
					<td>${item.hongbao!""}</td>
					<td>${item.hongbao_money!}</td>
					<td>
					${dateformat(item.addtime!"")}
					</td>
					<td>${item.remark!""}</td>
					<td >--</td>
				</tr>
				</#list>
				<tr>
				<td colspan="10" class="action">
				<div class="floatl">
			         <a href="#" onclick="exportxls()">导出报表</a>
					</div>
				<div class="floatr">          
		                    用户名：<input type="text" name="username" id="username" value="${username!}" size="10" />  
		            <input type="button" value="搜索"  onclick="sousuo()">
				</div>
				</td>
			</tr>
				<tr>
					<td colspan="11" class="page">
						<#import "../../common/page.html" as pager>  
			         	<@pager.pagination page=page url="/admin/cash/hongBaoList.html" map=param style="style1"  /> 
					</td>
				</tr>
			</table>
		</form>	
		<!--充值记录列表 结束-->
		<!--提现审核 开始-->
		<script>
		var url = 'hongBaoList.html?search=true';
		var xlsurl = 'hongBaoList.html?type=export';
		
		function sousuo(){
			var sou = "";
			var username = $("#username").val();
			if (username!=""){
				sou += "&username="+username;
			}
			if (sou!=""){
			location.href=url+sou;
			}
			}
		
		function exportxls(){
			var sou = "";
			var username = $("#username").val();
			if (username!=""){
				sou += "&username="+username;
			}
			var status = $("#status").val();
			if (status!="" && status!=null){
				sou += "&status="+status;
			}
			var dotime1 = $("#dotime1").val();
			var dotime2 = $("#dotime2").val();
			var type = $("#type").val();
			if (dotime1!=null){
				 sou += "&dotime1="+dotime1;
			}
			if (dotime2!=null){
				 sou += "&dotime2="+dotime2;
			}
			var succtime1 = $("#succtime1").val();
			var succtime2 = $("#succtime2").val();
			var type = $("#type").val();
			if (succtime1!=null){
				 sou += "&succtime1="+succtime1;
			}
			if (succtime2!=null){
				 sou += "&succtime2="+succtime2;
			}
			var trade_no = $("#trade_no").val();
			if (trade_no!=""){
				sou += "&trade_no="+trade_no;
			}
			if (sou!=""){
				location.href=xlsurl+sou;
			}else{
				location.href=xlsurl;
			}
		}
		</script>
			  
			</div>
		</div>
		<!-- div.main_right end  -->
	</div>
	<!-- div.main end  -->
	<#include "../foot.html">
</body>
</html>
